var addressService = {
    searchReceiveAddress: function(params, callback) {
        Api.get("address.searchReceiveAddress", params,  callback);
    },
    deleteAddress: function(params, callback) {
        Api.post("address.deleteAddress", {"urlParams" :params},  callback);
    },
    getCountryList: function(params, callback) {
        Api.get("address.countryList", params,  callback);
    },
    getProvinceList: function(params, callback) {
        Api.get("address.provinceList", params,  callback);
    },
    getCityList: function(params, callback) {
        Api.get("address.cityList", params,  callback);
    },
    setAreaList: function(params, callback) {
        Api.get("address.areaList", params,  callback);
    },
    setDivisionList: function(params, callback) {
        Api.get("address.divisionList", params,  callback);
    },
    saveAddress: function(params, callback) {
        Api.post("address.saveAddress", {"urlParams" :params},  callback);
    },
    updateAddress: function(params, callback) {
        Api.post("address.updateAddress", {"urlParams" :params},  callback);
    },
    setDefaultAddress: function(params, callback) {
        Api.post("address.setDefaultAddress", {"seatParams": {newId: params.newId, type: params.type, transportType: params.transportType}},  callback);
    },
    getAddressType: function(config, callback){
        Api.get("address.getAddressType", config,  callback);
    },
    getSeaAirList: function(config, callback){
        Api.get("address.getSeaAirList", config,  callback);
    }
}
module.exports = addressService;
